<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    .box{
      height: 800px;
      /*开启弹性布局的 该容器为块级元素*/ 
      display: flex;  
      /*开启弹性布局的 该容器为行内块元素*/ 
      /* display: inline-flex;  */
      /* 特别注意：一但开启了弹性布局，所有的容器成员都会变成行内块元素 */

      /* flex-direction: row;
      flex-wrap: wrap-reverse; */
      flex-flow: row wrap;
      justify-content: space-around;
      align-items: flex-start;
    }
    span{
      width: 300px;
      height: 50px;
      background-color: skyblue;
      order: 1;
      /* flex-shrink: 0; */
      /* flex: 1 0 auto; */
    }

</style>
<body>
    <!-- 任何一个盒子都能开启flex布局 -->
    <!-- 弹性布局，需要牢牢的记住两点：容器的属性，项目（容器成员）的属性 -->
    <div class="box">
        <!-- flex-basis:200px 单独给 1 分配了200px的大小 -->
      <span style="flex-basis:200px">1</span>
      <span>2</span>
      <span>3</span>
      <!-- flex-grow:1 放大 -->
      <span style="order:0;">4</span>
      <span style="align-self:flex-end">5</span>
    </div>
    <span>8</span>
</body>
</html>